namespace Excerise;

public class Student
{
    //属性
    public string Name { get; set; }
    public int Age { get; set; }
    public int StudentID { get; set; }

    //全参构造
    public Student(string name, int age, int studentID)
    {
        Name = name;
        Age = age;
        StudentID = studentID;
    }

    //无参构造
    public Student()
    {

    }

    //用于显示学生的所有信息
    public string ShowInfo()
    {
        return $"姓名:{Name},年龄:{Age},学号:{StudentID} ";
    }

}